/*
 * @Description: 
 * @Date: 2023-12-20 14:57:53
 * @LastEditTime: 2023-12-26 09:04:23
 */
import Mock from 'mockjs'

//查询所有代表
Mock.mock('/api/info', 'get', {
    "status": 200,
    "arr|130": [{
        'id|+1': 1,
        "username": "@cname",
        "isMale": '@boolean',//随机性别,
        "age|1-100": 1,
        "address": "@county",
        avatar() {
            //用户头像
            // return Mock.Random.image('100×100', Mock.Random.color(), '#757575', 'png')
            return Mock.Random.image('100x100', '#C50C0F', '#ffffff', 'png', this.username)
        }
    }]
})

//查询所有会议
Mock.mock('/api/huiYi', 'get', {
    "status": 200,
    "arr|10": [{
        "id|+1": 1,
        "username": "第十九届人民代表大会第二次会议(2023)",
        "isMale": '@boolean',//随机性别,
        "now": Mock.Random.now('year'), // "2023-01-01 00:00:00"
        "now2": "@now('year')", // "2023-01-01 00:00:00"
    }]
})

